<?php

class CI_Validate {
    public static function isDate($strDate,$cSeparator='/') {
        if(empty($strDate)) return false;
        $parts = explode($cSeparator,$strDate);
		$len = count($parts);
        if($len != 3 || ($len ==3 && !checkdate($parts[1],$parts[0],$parts[2])) ) return false;        
        return true;
    }
}